package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用来发布学习内容对象 learning_content
 * 
 * @author admin
 * @date 2024-03-06
 */
public class LearningContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学习内容id */
    private Long contentId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 学习内容 */
    @Excel(name = "学习内容")
    private String content;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private String creatorId;

    /** 创建者姓名 */
    @Excel(name = "姓名")
    private String creatorName;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 内容描述 */
    @Excel(name = "内容描述")
    private String contentDesc;

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getContentDesc() {
        return contentDesc;
    }

    public void setContentDesc(String contentDesc) {
        this.contentDesc = contentDesc;
    }

    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCreatorId(String creatorId) 
    {
        this.creatorId = creatorId;
    }

    public String getCreatorId() 
    {
        return creatorId;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return "LearningContent{" +
                "contentId=" + contentId +
                ", title='" + title + '\'' +
                ", tags='" + tags + '\'' +
                ", content='" + content + '\'' +
                ", creatorId='" + creatorId + '\'' +
                ", creatorName='" + creatorName + '\'' +
                ", publishTime=" + publishTime +
                ", contentDesc='" + contentDesc + '\'' +
                '}';
    }
}
